tag "定义" add util.noriding_kill
tag "定义" add util.noriding_kill.void
tag "定义" add util.nopassenger_kill
tag "定义" add util.nopassenger_kill.void
tag "定义" add util.NoEntityOwnerKill
tag "定义" add son_entity

#No Riding Kill
execute as @e[tag=util.noriding_kill] unless function util:if/is_riding run kill @s
execute as @e[tag=util.noriding_kill.void] unless function util:if/is_riding run function util:void_kill

#No Passenger Kill
execute as @e[tag=util.nopassenger_kill] unless function util:if/have_passenger run kill @s
execute as @e[tag=util.nopassenger_kill.void] unless function util:if/have_passenger run function util:void_kill

#NoEntityOwnerKill
execute as @e[type=!marker,tag=util.NoEntityOwnerKill] run function util:entity_owner/no_entity_owner_kill with entity @s Passengers[{Tags:["util.entity_owner.marker"]}].data
execute as @e[type=marker,tag=util.NoEntityOwnerKill] run function util:entity_owner/no_entity_owner_kill with entity @s data

tag @e[tag=son_entity] remove son_entity